<?php
	$data = $this->featuredpost;
	//print_r($data);
	
?>
<img class="ribbon" src="<?php echo $this->baseUrl()?>/app/templates/frontend/images/ribbon.png" />
<ul class="ui-tabs-nav">
	<?php foreach($data as $item){ ?>
	<li class="ui-tabs-nav-item ui-tabs-selected" id="nav-fragment-<?php echo $item['pos_id']; ?>"><a href="#fragment-1"><img src="<?php echo $this->baseUrl()?>/app/templates/frontend/images/<?php echo $item['pos_img'] ?>" alt="" /></a>
		<div class="info">
			<h2><a href="#"><?php echo $item['pos_title'] ?></a></h2>
			<div class="subcontent"><?php echo substr($item['pos_sortcontent'],0,195).'...';  ?></div>
		</div>
	</li>
	<?php }  ?>
</ul>


<?php foreach($data as $item){ ?>
<div id="fragment-<?php echo $item['pos_id']; ?>" class="ui-tabs-panel">
	<div class="img_featured">
		<img src="<?php echo $this->baseUrl()?>/app/templates/frontend/images/<?php echo $item['pos_img'] ?>" alt="" />
	</div>
	<div class="info" >
		<div class="date-auth">
			<label>By:</label><span><?php echo $item['adm_fullname'] ?></span> | <label>On:</label><span><?php echo $item['pos_date'] ?></span>
		</div>
		<h2><a href="#" ><?php echo $item['pos_title'] ?></a></h2>

		<p><?php echo $item['pos_sortcontent'] ?></p>
		<div class="readmore"><a href="#" >Read More</a></div>
	</div>
</div>
<?php } ?>
